package com.nine.shop.vo;

import lombok.Data;

import java.util.List;

@Data
public class PageVo<T> {
    private long current;
    private long total;
    private long size;
    private long pages;
    private List<T> data;

    public PageVo() {

    }

    public PageVo(long current, long total, long size,long pages, List data) {
        //当前页码
        this.current = current;
        //全部数据数量
        this.total = total;
        //本页数据数量
        this.size = size;
        //数据
        this.data = data;
        //全部页数
        this.pages=pages;
    }



}
